# Contributor: Ariadne Conill <ariadne@dereferenced.org>
# Maintainer: Ariadne Conill <ariadne@dereferenced.org>
pkgname="i2util"
pkgver="4.2.1"
pkgrel=1
pkgdesc="Internet2 utility library"
url="https://github.com/perfsonar/i2util"
arch="all"
license="Apache-2.0"
depends=""
depends_dev=""
makedepends="$depends_dev autoconf automake libtool"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/perfsonar/i2util/archive/v$pkgver/i2util-$pkgver.tar.gz"
builddir="$srcdir/i2util-$pkgver"

prepare() {
	cd "$builddir"
	sh bootstrap.sh
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make install DESTDIR="$pkgdir"
}

sha512sums="743ce52fb47637e1a6fafd00b00f0905007e5dd917325d946f6a4a6991eb4f711b883a05f1b79f1ea222146797df05cc779163f5cfd672c5a287cdea6de7cb1c  i2util-4.2.1.tar.gz"
